/*
 * @Description:表单数据
 * @Version: 2.0
 * @Autor: kafei
 * @Date: 2021-12-01 17:16:49
 * @LastEditors: kafei
 * @LastEditTime: 2021-12-10 15:04:44
 */
export const formData = [
  {
    props: 'rName',
    label: '权限字符',
    type: 'el-input',
    config: {
      placeholder: '请输入用户权限字符',
      clearable: true
    },
    pattern: [
      { required: true, message: '请输入权限字符', trigger: ['blur', 'change'] }
    ]
  },
  {
    props: 'rdesc',
    label: '角色名称',
    type: 'el-input',
    config: {
      placeholder: '请输入角色名称',
      clearable: true
    },
    pattern: [
      { required: true, message: '请输入角色名称', trigger: ['blur', 'change'] }
    ]
  },
  {
    props: 'rStatus',
    label: '角色状态',
    type: 'el-select-options',
    config: {
      placeholder: '请选择角色状态',
      clearable: true,
      options: [
        { label: '启用', value: '1' },
        { label: '未启用', value: '0' }
      ]
    }
  },

  {
    props: 'userId',
    label: '所属用户',
    type: 'el-select-options',
    config: {
      placeholder: '请选择所属用户',
      clearable: true,
      options: [],
      multiple: true,
      filterable: true
    }

  },
  {
    props: 'mid',
    label: '所属菜单',
    type: 'treeDialog',
    config: {
      params: {}
    }

  }

]
